if not mysuitb.findPos(getlist.getlastcard().suit) then
equal = 1
currentsel = spriteNum - 4
godlist = foundation[row]
else
if (getlist = foundation[#fone]) or (getlist = foundation[#ftwo]) or (getlist = foundation[#fthree]) or (getlist = foundation[#ffour]) then
equal = 1
currentsel = spriteNum - 4
godlist = foundation[row]
end if
end if
end if
else
if foundation[row].getcardcount() > 0 then
if (getlist.getlastcard().rankvalue = (foundation[row].getlastcard().rankvalue - 1)) and (getlist.getlastcard().suit = foundation[row].getlastcard().suit) then